package task3;

/**
 * 用户消费类
 */
public class UserConsume {
    // 通话时长
    private double time;
    // 上网流量
    private double data;
    // 每月消费金额
    private double fine;

    // 无参构造
    public UserConsume() {
    }

    // 有参构造
    public UserConsume(double time, double data, double fine) {
        this.time = time;
        this.data = data;
        this.fine = fine;
    }

    public double getTime() {
        return time;
    }

    public void setTime(double time) {
        this.time += time;
    }

    public double getData() {
        return data;
    }

    public void setData(double data) {
        this.data += data;
    }

    public double getFine() {
        return fine;
    }

    public void setFine(double fine) {
        this.fine += fine;
    }
}
